var userProfile = null;
$(document).ready(function (){
	if(userProfile == null){		
		$.ajax({
			type:"GET",
			url:"index/getuser",
			async:true,
			beforeSend:function loading(){
			},
			success:function(v){
				var data = window.JSON.parse(v);
				userProfile = data.data;
//				var n = document.getElementById("map-userName");
//				if(n != null)
//					n.innerHTML = "  Welcome to Alanbots " + userProfile.name;
			},
			error:function(){				
			}
		});		
	}		
});